package cn.shuangliang.contract.dao;

import cn.shuangliang.contract.model.Admin;
import cn.shuangliang.contract.model.AdminExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AdminMapper {
    long countByExample(AdminExample example);

    int deleteByPrimaryKey(Long id);

    int insert(Admin record);

    int insertSelective(Admin record);

    List<Admin> selectByExample(AdminExample example);

    Admin selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Admin record);

    int updateByPrimaryKey(Admin record);

    public Admin login(String u,String p);

    int resetPass(@Param("id") Long id, @Param("newPass")String newPass, @Param("oldPass")String oldPass);
}